package cn.rumoss.basic;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.MyArrayList;

/**
 * @ClassName MyArrayListTest
 * @Description //TODO
 * @Author HeCG
 * @Date 19-5-19 上午12:26
 */
public class MyArrayListTest {

    public static void main(String[] args) throws Exception {

        /*ArrayList al = new ArrayList<String>();
        al.add("abc");
        al.add("123");
        al.add("456");

        ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("/data/logs/list.ser"));
        oos.writeObject(al);

        ObjectInputStream ois = new ObjectInputStream(new FileInputStream("/data/logs/list.ser"));

        ArrayList<String> a = (ArrayList<String>)ois.readObject();
        for(String s: a)
        {
            System.out.println(s);
        }*/

        System.out.println(2>>1);

    }

}
